import Layout from '@/layout/index.vue'

/**
 * 基础路由
 * @type { *[] }
 */

const constantRouterMap = [
    {
        path: '',
        component: Layout,
        hidden: false,
        redirect: '/index',
        children: [
            {
                path: '/index',
                name: 'Index',
                meta: {title: '首页', icon: 'dashboard', affix: true},
                component: () => import('@/views/example/hello/Index.vue')
            },
        ]
    },
    {
        path: '/test',
        component: Layout,
        hidden: false,
        redirect: 'test',
        meta: {title: "测试", icon: 'dashboard', affix: true},
        children: [
            {
                path: 'text1',
                name: 'Index1',
                meta: {title: '测试', icon: 'dashboard', affix: true},
                component: () => import('@/views/example/hello/Indexs.vue'),
                query: `{"a": "b"}`
            },
            {
                path: 'text2',
                name: 'Index2',
                meta: {title: '测试2', icon: 'dashboard', affix: true},
                component: () => import('@/views/example/hello/Indexs.vue'),
                query: `{"a": "b"}`
            }
        ]
    },
]

export default constantRouterMap